﻿@model BBICMS.Application.ViewModels.Front.CollectionListVM
@{
    ViewBag.Title = Title.MyFavorites;
}


@section header{
    <link href="~/Content/iconfont/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/plugins/toastr/toastr.min.css" rel="stylesheet" />
}


@section featured{
    <div class="sitepath">
        <div class="container">
            <div class="row">
                @*<div class="col-xs-4">
                    <h1>@ViewBag.Title</h1>
                </div>*@
                <div class="col-xs-8">
                    <ol class="breadcrumb">
                        <li><a href="/">@Menu.Home</a></li>
                        <li class="active">@ViewBag.Title</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
}


<div class="container page-member" style="min-height:inherit; margin-bottom:30px">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation"><a href="@Url.Action("Index")" aria-controls="home" role="tab" data-toggle="tab"><i class="iconfont icon-profile fa-fw"></i>@Title.Profile</a></li>
            <li role="presentation" class="active"><a href="#" aria-controls="profile" role="tab" data-toggle="tab"><i class="iconfont icon-shoucangjia fa-fw"></i>@Title.MyFavorites</a></li>
            <li role="presentation"><a href="@Url.Action("UpdatePWD")" aria-controls="messages" role="tab" data-toggle="tab"><i class="iconfont icon-mima fa-fw"></i>@Title.Security</a></li>
        </ul>
</div>
<div class="container  page-products">
    <div class="row productlist">
        @foreach (var product in Model.ProductList)
        {
            Html.RenderPartial("_PartialProductBox", product);
        }
    </div>
    <footer class="text-center">
        @Html.PagedListPager((IPagedList)Model.ProductList, page => Url.Action("Index", new
           {
               page
           }))
    </footer>
</div>



<form id="anti-form" method="post">
    @Html.AntiForgeryToken()
</form>

@section scripts {
  
    <script src="~/plugins/toastr/toastr.min.js"></script>
    <!-- pre load bg imgs -->
    <script type="text/javascript">
        $(function () {
            //删除数据
            $('.delete-item').click(function (e) {
                e.preventDefault();
                var url = $(this).attr('data-url'), that = $(this), title = '@Messages.DeleteCollection';
                Common.DeleteItem(url, title, that);            
             
            });
        })
       
    </script>
}
